package com.zdw.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zdw.demo.entity.SeataDemoOneEntity;
import com.zdw.demo.entity.WechatOrderLog;
import com.zdw.demo.mapper.SeataDemoOneMapper;
import com.zdw.demo.mapper.WechatOrderLogMapper;
import com.zdw.demo.service.WechatOrderLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * Service : 微信支付订单日志 服务类
 * 用于处理实际的业务逻辑。
 */
@Service
@Slf4j
public class WechatOrderLogServiceImpl extends ServiceImpl<WechatOrderLogMapper, WechatOrderLog> implements WechatOrderLogService {

    @Autowired
    private WechatOrderLogMapper orderLogMapper;


    /**
     * 新增订单日志
     *
     * @param orderLog
     * @return
     */
    public boolean save(WechatOrderLog orderLog) {
        return orderLogMapper.insert(orderLog) > 0;
    }


}
